package com.pocket.cloud.order.entity;

import io.mybatis.provider.Entity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhaozhile
 */
@Setter
@Getter
@Entity.Table("tz_order_item")
public class OrderItem {
    /**
     * 订单项ID
     */

    @Entity.Column(value = "order_item_id", id = true, useGeneratedKeys = false)
    private Long orderItemId;

    /**
     * 店铺id
     */
    @Entity.Column(value = "shop_id")
    private Long shopId;

    /**
     * 订单order_number
     */
    @Entity.Column(value = "order_number")
    private String orderNumber;

    /**
     * 产品ID
     */
    @Entity.Column(value = "prod_id")
    private Long prodId;

    /**
     * 产品SkuID
     */
    @Entity.Column(value = "sku_id")
    private Long skuId;

    /**
     * 购物车产品个数
     */
    @Entity.Column(value = "prod_count")
    private Integer prodCount;

    /**
     * 产品名称
     */
    @Entity.Column(value = "prod_name")
    private String prodName;

    /**
     * sku名称
     */
    @Entity.Column(value = "sku_name")
    private String skuName;

    /**
     * 产品主图片路径
     */
    private String pic;

    /**
     * 产品价格
     */
    private BigDecimal price;

    /**
     * 用户Id
     */
    @Entity.Column(value = "user_id")
    private String userId;

    /**
     * 商品总金额
     */
    @Entity.Column(value = "product_total_amount")
    private BigDecimal productTotalAmount;

    /**
     * 购物时间
     */
    @Entity.Column(value = "rec_time")
    private Date recTime;

    /**
     * 评论状态： 0 未评价  1 已评价
     */
    @Entity.Column(value = "comm_sts")
    private Integer commSts;

    /**
     * 推广员使用的推销卡号
     */
    @Entity.Column(value = "distribution_card_no")
    private String distributionCardNo;

    /**
     * 加入购物车时间
     */
    @Entity.Column(value = "basket_date")
    private Date basketDate;
}